home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / network / ncsasock / macsockd.h < prev    next >
Text File  |  1996-07-05  |  2KB  |  55 lines

  1. /*
  2.  * BSD-style socket emulation library for the Mac
  3.  * Original author: Tom Milligan
  4.  * Current author: Charlie Reiman - creiman@ncsa.uiuc.edu
  5.  *
  6.  * This source file is placed in the public domian.
  7.  * Any resemblance to NCSA Telnet, living or dead, is purely coincidental.
  8.  *
  9.  *      National Center for Supercomputing Applications
  10.  *      152 Computing Applications Building
  11.  *      605 E. Springfield Ave.
  12.  *      Champaign, IL  61820
  13.  */
  14.  
  15. /*
  16.  * Various #defines to make the DTM source compile on a Mac and
  17.  * use the NCSA socket library. This file written by 
  18.  * Charlie Reiman, NCSA
  19.  * Wednesday, July 11, 1990 9:18:40 AM
  20.  *
  21.  * BE CAREFUL if you use this file, as you can no longer access all of the Mac 
  22.  * Standard C library without extreme difficulty.  Well, you might be able to, 
  23.  * but I can't think of a nice 'n easy way to do it. 
  24.  */
  25.  
  26. #define socket            s_socket
  27. #define bind            s_bind
  28. #define listen            s_listen
  29. #define accept            s_accept
  30. #define connect            s_connect
  31. #define read            s_read
  32. #define recvfrom        s_recvfrom
  33. #define recv            s_recv
  34. #define writev            s_writev
  35. #define write            s_write
  36. #define sendto            s_sendto
  37. #define send            s_send
  38. #define sendmsg            s_sendmsg
  39. #define select            s_select
  40. #define close            s_close
  41. #define getdtablesize    s_getdtablesize
  42. #define getsockname        s_getsockname
  43. #define getpeername        s_getpeername
  44. #define shutdown        s_shutdown
  45. #define    fcntl            s_fcntl
  46. #define dup2            s_dup2
  47. #define dup                s_dup
  48. #define ioctl            s_ioctl
  49. #define setsockopt        s_setsockopt
  50. #define perror            s_perror
  51.  
  52. /*
  53.  * There is also a s_spinroutine, but there is no unix parallel for this,
  54.  * so it has no place in this list.
  55.  */